﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Data;
using Volo.Abp.Domain.Entities;

namespace Niti.OrderManage.OrderManage
{
    /// <summary>
    /// 供应商
    /// </summary>
    public  class Supplier : Entity<int>,ISoftDelete
    {
        /// <summary>
        /// 供应商唯一编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 供应商的名称
        /// </summary>

        public string SName { get; set; }
        /// <summary>
        /// 供应商合作开始时间
        /// </summary>

        public DateTime BeginTime { get; set; } 
        /// <summary>
        /// 供应商合作结束时间
        /// </summary>

        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 供应商联系人
        /// </summary>

        public string ContactName { get; set; }
        /// <summary>
        /// 供应商联系电话
        /// </summary>

        public string ContactNumber { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; } 
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;


        public Supplier()
        {
            CreationTime = DateTime.Now;
        }

    }
}
